package com.iwe3.operation.handler;

import com.iwe3.operation.common.IErrorCode;

/**
 * 专门用于抛出业务异常
 */
public class Asserts {
    public static void fail(boolean condition, IErrorCode code)
    {
        if(condition) throw new BussinessException(code);

    }
}
